package Model.StatisticalReport;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE)
public class ReportDetail extends Report{

    @NotEmpty
    private String NAME; //姓名

    @NotEmpty
    private String BXID; //保险ID， 身份证号码

    @NotEmpty
    private String YBID; //医保ID

    //@DateTimeFormat(pattern = "yyy-MM-dd")
    @JsonFormat(pattern="yyyyMMdd")
    private Date JYDATE; //评估日期

    @NotEmpty
    private String GRXZ; //个人性质

    @NotEmpty
    private String YYID; //医院编号


}
